﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>添加公告</title>
<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/jspublic.js" type="text/javascript"></script>
<script src="js/easyui/jquery.easyui.js" type="text/javascript"></script>
<script src="js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/js/redactor/redactor.min.js" type="text/javascript"></script>
<link href="/js/redactor/redactor.css" rel="stylesheet" type="text/css" />
<link href="style/right.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(function(){
		
		if (window.frameElement == null) self.location = '/manage';
		
		$('.contentbox textarea').redactor({ focus: true, lang: 'zh_cn', minHeight: 250 });
	
	});
	
	function checkForm()
	{
		if(document.form1.n_title.value==null||document.form1.n_title.value=="")
		{
			document.form1.n_title.focus();
			alert("标题不能为空！");
			return false;
		}
		if(document.documentElement("n_content").value==null||document.documentElement("n_content").value=="")
		{
			document.form1.n_content.focus();
			alert("内容不能为空！");
			return false;
		}
		return true;
	}	
</script>
</head>

<body>
<div class="zs_content">

	<div class="zs_quota">
		<h4>添加公告</h4>
	</div>
	
	<div class="zs_sys">
		<form action="admin_add.aspx?T=b_news" method="post" name="form1" id="form1" onsubmit="return checkForm();">
		<ul>
			<li>
				<label>公告标题：</label>
				<div class="controls">
					<input type="text" name="n_title" type="text" maxlength="50" />
				</div>
			</li>
			<li>
				<label>公告内容：</label>
				<div class="controls">
					<div class="contentbox">
						<textarea name="n_content" id="n_content"></textarea>
					</div>
				</div>
			</li>
			<li class="act">
				<label></label>
				<div class="controls">
					<input type="submit" id="Submit" name="Submit" value="添加" class="btn btn-primary" />
					<input type="button" name="back" value="返回" class="btn btn-primary" onclick="javascript:window.history.go(-1);" />
				</div>
			</li>
		</ul>
		</form>
	</div>
	
</div>
	
</body>
</html>